package com.menglei.dailytasks.service;

import android.app.Service;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.IBinder;
import android.util.Log;

import androidx.annotation.Nullable;

public class ServiceDemo extends Service {
    private static final String TAG = "ServiceDemo";

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        Log.d(TAG,"ServiceDemo onBind");
        return null;
    }

    @Override
    public void onDestroy() {
        Log.d(TAG,"ServiceDemo onDestroy");
        super.onDestroy();
    }

    @Override
    public void onCreate() {
        Log.d(TAG,"ServiceDemo onCreate");
        super.onCreate();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.d(TAG,"ServiceDemo onStartCommand");
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onRebind(Intent intent) {
        Log.d(TAG,"ServiceDemo onRebind");
        super.onRebind(intent);
    }

    @Override
    public boolean onUnbind(Intent intent) {
        Log.d(TAG,"ServiceDemo onUnbind");
        return super.onUnbind(intent);
    }


    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        Log.d(TAG,"ServiceDemo onConfigurationChanged");
        super.onConfigurationChanged(newConfig);
    }
}
